package com.alfayun.fiscalriskanalysis.another.indicator;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.alfayun.fiscalriskanalysis.another.type.ScriptType;

@Entity
@Table(name = "measure")
public final class MeasureEntity {

	public long id;
	public String code;
	public String name;
	@Enumerated(EnumType.STRING)
	public ScriptType type;
	public String script;

	{
		script = "{"
				+ "  'function': 'sum',"
				+ "  'param1': 1,"
				+ "  'param2': 15,"
				+ "  'param3': 2.1"
				+ "}";

		script = "{"
				+ "  'function': 'multi',"
				+ "  'param1': 1.4,"
				+ "  'param2': 15.01"
				+ "}";
	}

	public String param0;
	public String param1;
	public String param2;
	public String param3;
	public String param4;
	public String param5;
	public String param6;
	public String param7;
	public String param8;
	public String param9;

	{
		param0 = "sum";
		param1 = "1,1";
		param2 = "3,2";

		param0 = "multi";
		param1 = "1.0";
		param2 = "14";
	}

}
